package xin.nick.demo;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
@RabbitListener(queues = "myqueue")
public class Receiver2 {


    public void receiveMessage(String message) throws InterruptedException {
        System.out.println("Receive : " + message);
        Thread.sleep(1000);
        System.out.println("Done");

    }


}
